package com.lzq.mediator.improved;

public abstract class Colleague {
    private Mediator mediator;
    public String name;
    public Colleague(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }
    // 发送消息
    public abstract void sendMessage(int state);
    // 获取Mediator对象
    public Mediator getMediator() {
        return this.mediator;
    };
}
